<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/formui.css" />
<link rel="stylesheet" type="text/css" href="<%=path%>/css/base.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/css/admin-all.css" />
</head>
<body>
	<div class="alert alert-info">
		当前位置<b class="tip"></b>员工管理界面<b class="tip"></b>查看
	</div>

	<table class="tb" id="list">
		<thead>
			<tr class="tr">
				<td width="5%">员工编号</td>
				<td width="10%">员工姓名</td>
				<td width="10%">员工部门</td>
				<td>员工电话</td>
				<td>员工地址</td>
				<td>基本操作</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${empList }" var="emp">
				<tr class="even">
					<td width="5%">${emp.eid }</td>
					<td width="10%"><a href="<%=path %>/emp_Details.jsp" style="color: blue">${emp.ename }</a></td>
					<td width="10%">${emp.dept.dname }</td>
					<td width="20%">${emp.phone }</td>
					<td width="20%">${emp.address }</td>
					<td><a href="" style="color: blue">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="" style="color: blue">删除</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="" style="color: blue">头像采集</a></td>
				</tr>
			</c:forEach>

			<tr class="tr_pagenumber">
				<td colspan="100">
				<form action="<%=path%>/getEmpList" method="get">
				当前第${page.index }页/共${page.totalPageCount }页&nbsp;&nbsp;共${page.totalCount }条记录&nbsp;&nbsp;
					
				
						跳转到第
				<select name="index">
						<c:forEach var="i" begin="1" end="${page.totalPageCount}">
							<option value="${i }">${i }</option>
						</c:forEach>
				</select>页 
				<input type="submit" value="Go"/>&nbsp;&nbsp;
				
				
						<c:if test="${page.index>1 }">
					<a class="badge badge-inverse" href="<%=path%>/getEmpList?index=0">首页</a>&nbsp; <a
					class="badge badge-inverse" href="<%=path%>/getEmpList?index=${page.index-1}">上一页</a>&nbsp; 				
					</c:if>
					
					
					<c:if test="${page.index<page.totalPageCount }">
						 <a class="badge badge-inverse"href="<%=path%>/getEmpList?index=${page.index+1}">下一页</a>&nbsp; <a
					class="badge badge-inverse" href="<%=path%>/getEmpList?index=${page.totalPageCount}">尾页</a>
				
					</c:if>
				
					</form>
					
					
				</td>
			</tr>
		</tbody>
	</table>
</body>
</html>